#ifndef __BSW_UART_H__
#define __BSW_UART_H__

#include "stm32f4xx_hal.h"
#include "device_w25q128.h"
#include "my_printf.h"
#include "usart.h"
#include "gpio.h"
#include "tim.h"
#include "C_CRC16.h"
#include <string.h>

void BSW_UART_Init(void);

extern uint8_t Gloable_u8MCU_TO_PC_UART_RxBit;				//单字节接收缓冲
extern uint32_t Gloable_u32MCU_TO_PC_UART_RxLen;			//最终传递出去的单帧长度
extern uint32_t Gloable_u32MCU_TO_PC_UART_RxCnt;			//接收计数
extern uint8_t Gloable_u8MCU_TO_PC_UART_RxArr[300];    	//数组接收缓冲
extern uint8_t Gloable_u8MCU_TO_PC_UART_CMDNum;		//命令语句长度
extern uint16_t Gloable_u16MCU_TO_PC_UART_DATANum;		//数据帧长度

//>>>>>>USER COMFIG PARAMATER START<<<<<<<<<
#define   MCU_TO_PC_UART_port   huart1

//>>>>>>USER COMFIG PARAMATER END<<<<<<<<<
#endif /*__ BSW_UART_H__ */
